package com.pedro.streamer;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;

import com.pedro.streamer.fragment.AIRadioFragment;


public class RadioActivity extends BaseMainActivity {
    private AIRadioFragment aiRadioFragment;
    public FragmentManager fragmentManager;
    private TextView backText;




    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.radio_activity);

        backText = findViewById(R.id.back_text);
        backText.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });

        fragmentManager = getSupportFragmentManager();

        showFragment();
    }


    private void showFragment() {


        aiRadioFragment = new AIRadioFragment();
        FragmentTransaction transaction = fragmentManager.beginTransaction();
        transaction.add(R.id.radio_fragment, aiRadioFragment).commit();

    }
}